package bean;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FullyQualifiedAnnotationBeanNameGenerator;

@SpringBootApplication
@ComponentScan(basePackages = {"bean", "http", "services"}, nameGenerator = FullyQualifiedAnnotationBeanNameGenerator.class)
public class ApplicationStarter {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(ApplicationStarter.class);
        application.addListeners(new ApplicationPidFileWriter());
        application.run(args);
    }
}
